<!DOCTYPE html> 
<html> 
    <head > 
    <link rel="stylesheet" href="/static/jquery.mobile-1.0a2/jquery.mobile-1.0a2.min.css" />
    <script src="/static/jquery.min.js"></script>
    <script src="/static/jquery.mobile-1.0a2/jquery.mobile-1.0a2.min.js"></script>
  
</head> 
<body>

<div data-role="page" > 
   
    <div data-theme="c" data-role="navbar">
	<ul>
<li><a onClick="$('#sideNoti').load('/index1');" href='#'   >Courses you study</a></li>
				<li><a    href="#"  onclick="$('#sideNoti').load('/courses/subscribtion')" class="ui-btn-active ui-state-persist" >Subscribe</a></li>

	</ul>
</div>  
  <div data-role="content" data-theme="b">
{% if courses %}

<ul data-filter="true" data-filter-placeholder="Search by course or teacher name..." data-filter-theme="d" data-role="listview"  data-theme="r" data-inset="true" >
{% for course in courses %}
<li><a onClick="$('#sideNoti').load('/courses/request/{{course.id}}');" href='#' >{{course.title}}<div style="display:none">({{course.teacher}})</div></a></li>
{% endfor %}</ul>
{% else %}
<ul data-role="listview" data-theme="m" data-inset="true" >
<li>
No courses starts with that letter</li>
</ul>
{% endif %}</div></div>
</body>
</html>


